@extends('public.master')
@section('title',$article['title'])
@section('content')
    <h1 class="t_nav"><span>您现在的位置是：<a href="/">首页</a> > @curCategory(['pid'=>$article['pid']]) > {{$article['title']}}</span></h1>
    <div class="infos">
        <div class="newsview">
            <h3 class="news_title">{{$article['title']}}</h3>
            <div class="news_author"><span class="au01"><a href="mailto:770166067@qq.com">{{$article['author']}}</a></span><span class="au02">{{$article['created_at']}}</span><span class="au03">共<b>{!! $article['click'] !!}</b>人围观</span></div>
            <div class="tags">
                @tag(['aid'=>$article['id']])
                <a href="{{$tag['url']}}" target="_blank">{{$tag['name']}}</a> &nbsp;
                @endtag
            </div>
            <div class="news_about"><strong>简介</strong>{{$article['introduce']}}</div>
            <div class="news_infos">
                {!! $article['content'] !!}
            </div>
        </div>
        <div class="share"> </div>
        <div class="nextinfo">
            <p>上一篇：
                @pre_next(['pre'=>$article['id']])
            </p>
            <p>下一篇：@pre_next(['next'=>$article['id']])
            </p>
        </div>
        <div class="otherlink">
            <h2>相关文章</h2>
            <ul>
                @article(['pid'=>$article['pid']])
                <li><a href="{{$article['url']}}" title="{{$article['title']}}">{{$article['title']}}</a></li>
                @endarticle
            </ul>
        </div>
        <div class="news_pl">
            {{--<h2>文章评论</h2>--}}
            {{--<ul>--}}
                {{--<div class="UTF-8o"> </div>--}}
            {{--</ul>--}}
            {{--<div class="pinglun" style="padding:0px 10px;text-align: center;margin-top:20px;">--}}
                {{--<textarea style="resize:none;width:100%;margin:0px auto;" name="" id="" cols="20" rows="10"></textarea>--}}
                {{--<button type="submit" style="margin-top:10px;border-radius: 5px;padding:10px;background:#eee;outline: none;border:none;">提交评论</button>--}}
            {{--</div>--}}
            <!--PC和WAP自适应版-->
            <div id="SOHUCS" sid="" ></div>
            <script type="text/javascript">
                (function(){
                    var appid = 'cytJs2d6z';
                    var conf = 'prod_28789450cafa5d26e24b2a0709d5f8a2';
                    var width = window.innerWidth || document.documentElement.clientWidth;
                    if (width < 960) {
                        window.document.write('<script id="changyan_mobile_js" charset="utf-8" type="text/javascript" src="http://changyan.sohu.com/upload/mobile/wap-js/changyan_mobile.js?client_id=' + appid + '&conf=' + conf + '"><\/script>'); } else { var loadJs=function(d,a){var c=document.getElementsByTagName("head")[0]||document.head||document.documentElement;var b=document.createElement("script");b.setAttribute("type","text/javascript");b.setAttribute("charset","UTF-8");b.setAttribute("src",d);if(typeof a==="function"){if(window.attachEvent){b.onreadystatechange=function(){var e=b.readyState;if(e==="loaded"||e==="complete"){b.onreadystatechange=null;a()}}}else{b.onload=a}}c.appendChild(b)};loadJs("http://changyan.sohu.com/upload/changyan.js",function(){window.changyan.api.config({appid:appid,conf:conf})}); } })(); </script>
        </div>
    </div>
    <div class="blogs" style="display:none;margin-top:20px;"></div>
@endsection
@section('right')
    <div style="margin-top:20px;"></div>
    @include('public.right')
@endsection
@section('script')
    <link href="http://cdn.bootcss.com/highlight.js/8.0/styles/monokai_sublime.min.css" rel="stylesheet">
    <script src="http://cdn.bootcss.com/highlight.js/8.0/highlight.min.js"></script>
    <script >hljs.initHighlightingOnLoad();</script>
@endsection